package Exercise;

import org.junit.jupiter.api.Test;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author 王艺锡
 * @version 1.0
 */
public class Exercise01 {
    public static void main(String[] args) {



    }
    @Test
    public void test(){
        Dao<User> dao = new Dao<>();
        dao.add("001",new User(1,18,"jack"));
        dao.add("002",new User(2,26,"tom"));
        dao.add("003",new User(3,32,"lihua"));

        List<User> list = dao.list();
        System.out.println(list);

        dao.updata("001",new User(1,22,"yx"));
        dao.updata("002",new User(2,22,"ly"));
        list = dao.list();
        System.out.println(list);

        System.out.println(dao.get("002"));
    }
}

